# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer:
_pkgname=svgwrite
pkgname="py3-$_pkgname"
pkgver=1.4.3
pkgrel=3
pkgdesc="Python library to create SVG drawings"
url="https://github.com/mozman/svgwrite"
arch="noarch"
license="MIT"
depends="
	py3-parsing
"
makedepends="py3-setuptools_scm"
checkdepends="
	py3-pytest
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozman/svgwrite/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest tests
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="
3e599c13c2138aec1f9098baf3cf978b477f45ec2acd14d6aaadbcdf952064dac6313fd26050e670e9e989867c3539fa1cc7fb1cd226e34ff9f2a1ca2e7ddeff  py3-svgwrite-1.4.3.tar.gz
"
